package tools

import (
	"time"

	. "gddgame.cc/galaxy/common/dsl/db"
	"gddgame.cc/galaxy/utils/orm"
)

var (
	ToolsProcessModel = orm.NewModel("tools_process", &ToolsProcess{}, nil)
)

func GetProcessTable() *Table {
	return &Table{
		Model: ToolsProcessModel,
	}
}

type ToolsProcess struct {
	Id   int    `json:"id" orm:"auto" sql:"INT"`
	Name string `json:"name" sql:"VARCHAR"`
	Data string `json:"data" sql:"TEXT"`

	CreateTime *time.Time `json:"create_time" orm:"createTime" sql:"DATETIME"`
	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`
	DeleteTime *time.Time `json:"delete_time" orm:"deleteTime" sql:"DATETIME"`
}
